package ch4;
//汽车类
public class Automobile {
    int eatss;//座位数
    float cc;//排量
    public void show(int eatss,float cc){
        this.eatss=eatss;
        this.cc=cc;
    }
    public String nature(){
        return "排量是："+cc+"L,有"+eatss+"个座位";
    }
    public String  start(){
        return "启动";
    }
    public String  brake(){
        return "刹车";
    }

}

